/**
 * 
 */
package com.starhub.sample.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Hoan.NguyenTrong Jan 7, 2015
 * 
 */
@Entity
@Table(name = "banner")
public class Banner {

    private Long id;
    private String title;
    private String text;
    private String link;
    private String bgImageLink;

    public Banner() {
	super();
    }

    @Id
    @Column(name = "id", unique = true, nullable = false)
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
	return id;
    }

    public void setId(Long id) {
	this.id = id;
    }

    @Column(name = "title", length = 1000)
    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    @Column(name = "text", length = 1000)
    public String getText() {
	return text;
    }

    public void setText(String text) {
	this.text = text;
    }

    @Column(name = "link", length = 1000)
    public String getLink() {
	return link;
    }

    public void setLink(String link) {
	this.link = link;
    }

    @Column(name = "bg_image_link", length = 1000)
    public String getBgImageLink() {
	return bgImageLink;
    }

    public void setBgImageLink(String bgImageLink) {
	this.bgImageLink = bgImageLink;
    }
}
